<?phpinclude_once("../../../config.php");//访问就直接输出推荐的文章//参考地址http://t.event.com/api/miniapp/news/news_list.php?page=0//参数page，每页显示10条数据，下拉触发载入更多的时候，需要带这个参数来显示第几页的数据。$page = $_REQUEST['page'] ? : 1;$size = $page > 1 ? ($page-1)*10: 0;$newslist=select_lines_all_items($table_prefix."news","top_order desc,nid desc","status = '1'","$size,10");//提取文章中的图片，合并到数组中foreach ($newslist as $k=>$v ){    $newslist[$k]['imagelist']=get_images_from_richtext($v['content']);    $html_string = htmlspecialchars_decode($v['content']); // 将空格去除 $content = st    $content     = str_replace(" ", "", $html_string);    $content=preg_replace('/\r|\n|\t/','',$content);    $newslist[$k]['content_text']=strip_tags($content);}$data=$newslist;    $arr['status'] = 200;    $arr['info'] = $data;    die(json_encode($arr));?>